package com.xintoucloud.pbs.service.impl;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import com.xintoucloud.pbs.dao.MeetingPictureDao;
import com.xintoucloud.pbs.entity.MeetingPicture;
import com.xintoucloud.pbs.service.MeetingPictureService;
@Service
@Transactional
public class MeetingPictureServiceImpl implements MeetingPictureService{

	@Autowired
	private MeetingPictureDao meetingPictureDao;
	@Override
	public boolean save(MeetingPicture meetingPicture) {
		return meetingPictureDao.save(meetingPicture)!=null;
	}

	@Override
	public void delete(Integer mpid) {
		meetingPictureDao.delete(mpid);		
	}

	@Override
	@Transactional(readOnly=true)
	public List<MeetingPicture> list(String meetingNum) {
		return meetingPictureDao.list(meetingNum);
	}

}
